//
//  CityListTextCell.m
//  DMEducation
//
//  Created by uplooking on 2018/7/31.
//  Copyright © 2018年 CRLong. All rights reserved.
//

#import "CityListTextCell.h"

@interface CityListTextCell()
{
    
    UILabel * labelTitle;
}
@end;

@implementation CityListTextCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
     
        [self initView];
    }
    
    return self;
    
}

- (void)initView{
    
    
    labelTitle = [[UILabel alloc]init];
    [labelTitle setTextColor:HexRGBA(0x000000, 1)];
    [labelTitle setFont:[UIFont systemFontOfSize:16 * kAutoScanleX]];
    [labelTitle setTextAlignment:NSTextAlignmentLeft];
    [self addSubview:labelTitle];
    [labelTitle mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(15 * kAutoScanleX);
        make.centerY.equalTo(self);
    }];
    
    
    UIView *line = [[UIView alloc]init];
    [line setBackgroundColor:HexRGBA(0xcfd4db, 1)];
    [self addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.left.right.equalTo(self);
        make.height.mas_equalTo(0.5);
    }];
    
}

- (void)setTitle:(NSString *)title{
    
    [labelTitle setText:title];
    
}

@end
